package dialer.ws.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * FormDataRecolectedEntry entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "form_data_recolected_entry", schema = "call_center")
public class FormDataRecolectedEntry implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6270923823510239686L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_form_field", nullable = false)
	private FormField formField;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_call_entry", nullable = false)
	private CallEntry callEntry;

	@Column(name = "value", nullable = false)
	private String value;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public FormField getFormField() {
		return formField;
	}

	public void setFormField(FormField formField) {
		this.formField = formField;
	}

	public CallEntry getCallEntry() {
		return callEntry;
	}

	public void setCallEntry(CallEntry callEntry) {
		this.callEntry = callEntry;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}